<template>
	<view class="goods-list">
		<view class="goods-item" v-for="item in goods" :key="item.id">
			<image :src="item.img_url"></image>
			<view class="price">
				<text>￥{{ item.sell_price }}</text>
				<text>￥{{ item.market_price }}</text>
			</view>
			<view class="title">
				{{ item.title }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props:['goods']
	}
</script>

<style lang="scss" scoped>
.goods-list{
	display: flex;
	flex-wrap: wrap;
	padding: 0 6rpx;
	
	.goods-item{
		width: 357rpx;
		margin: 6rpx;
		padding: 16rpx;
		box-sizing: border-box;
		background: #fff;
		
		image{
			width: 80%;
			height: 300rpx;
			display: block;
			margin: 0 auto;
		}
		
		.price{
			text:first-child{
				color: $shop-color;
				font-size: 36rpx;
			}
			text:last-child{
				color: #ccc;
				font-size: 28rpx;
				margin-left: 10rpx;
				text-decoration: line-through;
			}
		}
		.title{
			font-size: 20rpx;
			line-height: 50rpx;
			padding: 10rpx 0;
		}
	}
}
</style>
